﻿function show_modal_dialog_all_record_onclick(p_goto_url,p_fuseaction,p_recordtype_filter,p_txt_obj,p_hdn_obj,p_fuseaction_back){
	v_url = _DSP_MODAL_DIALOG_URL_PATH;
	v_url = v_url + "?goto_url=" + escape(p_goto_url +  "?hdn_recordtype_filter_list=" + p_recordtype_filter);
	v_url = v_url + "&fuseaction=" + p_fuseaction + "&modal_dialog_mode=1" 
	v_url = v_url+ "&" + randomizeNumber();
	sRtn = showModalDialog(v_url,"","dialogWidth=550pt;dialogHeight=360pt;dialogTop=80pt;status=no;scroll=no;");
	//alert(sRtn);
	if (!sRtn) return;
	arr_value = sRtn.split(_LIST_DELIMITOR);
	p_hdn_obj.value = arr_value[1];
	p_txt_obj.value = arr_value[1];
	//alert(p_hdn_obj.value);
	//alert(p_txt_obj.value);
	if (p_fuseaction_back!=""){
		document.forms(0).fuseaction.value = p_fuseaction_back;
		document.forms(0).submit();
	}
}
///Luu lai danh sach cac the va cac gia tri co trong form
function save_list_onclick(f,hdn_obj_tag,hdn_obj_value){
	var list_tag = "";
	var list_value = "";
	var v_temp = "";
	var v_value = "";
	for (i=0;i<f.length;i++){
		var e=f.elements[i];
		if (e.value==""||e.value==null){
			v_value=" ";
		}else{
			v_value=e.value;
		}
		if (e.xml_tag_in_db &&(e.type!='radio' && e.type!='checkbox')){
			list_tag = list_append(list_tag,e.xml_tag_in_db,_SUB_LIST_DELIMITOR);
			list_value = list_append(list_value,v_value,_SUB_LIST_DELIMITOR);
		}
		if (e.xml_tag_in_db &&(e.type=='radio' || e.type=='checkbox')){
			list_tag = list_append(list_tag,e.xml_tag_in_db,_SUB_LIST_DELIMITOR);
			if (e.checked==true){
				v_temp="true";
			}else{
				v_temp="false";
			}
			list_value = list_append(list_value,v_temp,_SUB_LIST_DELIMITOR);
		}
	}
	if (hdn_obj_tag.value!=null && hdn_obj_value.value!=null){
		hdn_obj_tag.value = list_tag;
		hdn_obj_value.value = list_value;
	}
	//alert(list_tag);
	//alert(list_value);return;
}
function save_hidden_multiple_list(p_chk_obj,the_separator){
	var ret = "";
	try{
		if (!p_chk_obj.length){
			if (p_chk_obj.checked){
				ret=p_chk_obj.value;
				eval('document.forms(0).'+p_chk_obj.xml_tag_in_db_name+'.value="'+ret+'"');
			}
		}else{	
			current_chk_obj = p_chk_obj[0].xml_tag_in_db_name;
			for(i=0;i<p_chk_obj.length;i++){
				next_chk_obj = p_chk_obj[i].xml_tag_in_db_name;	
				if (current_chk_obj != next_chk_obj){  //Neu het danh sach thi gan vao gia tri cua danh sach
					eval('document.forms(0).'+current_chk_obj+'.value="'+ret+'"');
					ret = "";
				}
				if (p_chk_obj[i].checked){
					ret=list_append(ret,p_chk_obj[i].value,the_separator);					
				}
				if (i==p_chk_obj.length-1){ //Cuoi gan gia tri vao danh sach
					eval('document.forms(0).'+current_chk_obj+'.value="'+ret+'"');
					ret = "";
				}
				current_chk_obj = next_chk_obj;
			}
		}	
	}catch(e){;}
}
/////Begin/////Cac ham phuc vui cho checkbox multiple
function show_row_selected(rad_id,tr_name){
	//Thay doi selected cua radio button
	eval('document.all.' + rad_id + '(0).checked=false');
	eval('document.all.' + rad_id + '(1).checked=true');
	//hide cac dong chua modul neu tr_name='tr_function' va gia tri cua checked=""
	if (tr_name == 'tr_function'){
		v_count=eval('document.all.tr_modul.length');
		if (v_count){
			for(var i=0;i<v_count;i++){
				if (eval('document.all.tr_modul[i].checked == ""')){
					eval('document.all.tr_modul[i].style.display="none"');
				}else{
					eval('document.all.tr_modul[i].style.display="block"');
				}
			}
		}else{
			if (eval('document.all.tr_modul.checked == ""')){
				eval('document.all.tr_modul.style.display="none"');
			}else{
				eval('document.all.tr_modul.style.display="block"');
			}
		}
	}
	//hide cac dong tr_name neu gia tri checked=""
	v_count=eval('document.all.' + tr_name + '.length');
	var v_odd_class="";
	if(v_count){
		for(var i=0;i<v_count;i++){
			if (eval('document.all.' + tr_name + '[i].checked == ""')){
				eval('document.all.' + tr_name + '[i].style.display="none"');
			}else{
				if (v_odd_class == "odd_row"){
					eval('document.all.'+ tr_name + '[i].className="round_row"');
					v_odd_class = "round_row"
				}else{
					eval('document.all.'+ tr_name + '[i].className="odd_row"');
					v_odd_class = "odd_row"
				}
			}
		}
	}else{
		if (eval('document.all.' + tr_name + '.checked == ""')){
			eval('document.all.' + tr_name + '.style.display="none"');
		}else{
			if (v_odd_class == "odd_row"){
				eval('document.all.'+ tr_name + '.className="round_row"');
				v_odd_class = "round_row"
			}else{
				eval('document.all.'+ tr_name + '.className="odd_row"');
				v_odd_class = "odd_row"
			}
		}
	}
}
//Ham show_all_row co chuc nang hien thi tat ca doi tuong (ke ca khong thuoc nhom)
function show_row_all(rad_id,tr_name){
	//Thay doi selected cua radio button
	eval('document.all.' + rad_id + '(0).checked=true');
	eval('document.all.' + rad_id + '(1).checked=false');
	//show tat ca cac tr_modul neu tr_name='tr_function'
	if (tr_name == 'tr_function'){
		v_count=eval('document.all.tr_modul.length');
		if(v_count){
			for(var i=0;i<v_count;i++){
				var v_img_path = getImgDirectory(eval('document.all.img_modul[i].src'));
				eval('document.all.img_modul[i].src = v_img_path + "open.gif"');
				eval('document.all.tr_modul[i].style.display="block"');
			}
		}else{
			eval('document.all.tr_modul.style.display="block"');
		}
	}
	//show tat ca cac tr_name
	v_count=eval('document.all.' + tr_name + '.length');
	var v_odd_class="";
	if(v_count){
		for(var i=0;i<v_count;i++){
			eval('document.all.' + tr_name + '[i].style.display="block"');
			if (v_odd_class == "odd_row"){
				eval('document.all.'+ tr_name + '[i].className="round_row"');
				v_odd_class = "round_row"
			}else{
				eval('document.all.'+ tr_name + '[i].className="odd_row"');
				v_odd_class = "odd_row"
			}
		}
	}else{
		eval('document.all.' + tr_name + '.style.display="block"');
		if (v_odd_class == "odd_row"){
			eval('document.all.'+ tr_name + '.className="round_row"');
			v_odd_class = "round_row"
		}else{
			eval('document.all.'+ tr_name + '.className="odd_row"');
			v_odd_class = "odd_row"
		}
	}
}
/*Ham change_item_checked
Chuc nang: Xu ly khi NSD click mouse vao checkbox cua EndUser hoac cua Function
	-Tim tr_name chua checkbox duoc click va thay doi trang thai cua attribute checked ("" hoac "checked")
	-Kiem tra cac trang thai checked cua cac function trong modul de xac dinh trang thai checked cua modul
	(Neu khong co function nao duoc chon thi checked=""; neu co thi checked="checked")
	-Kiem tra che do hien thi (qua radio button) de refresh lai man hinh
Tham so:
	-chk_obj: doi tuong checkbox duoc click
	-tr_name: ten id cua row chua checkbox (tr_function hoac tr_enduser)
	-rad_id:  ten id cua radio button xac dinh che do hien thi cua moi loai (rad_group_enduser hoac rad_group_function)
*/
function change_item_checked(chk_obj,tr_name,rad_id){
	var v_count;
	var i;
	var v_modul_checked=false;
	//Tim row chua checkbox va thay doi gia tri cua tr_name.checked
	v_count = eval('document.all.' + tr_name +'.length');
	i=0;
	if (v_count){
		while (i<v_count){
			if (eval('document.all.' + tr_name + '[i].value == chk_obj.value')){
				if (eval('document.all.' + tr_name + '[i].checked == "checked"')){
					eval('document.all.' + tr_name + '[i].checked = ""');
				}else{
					eval('document.all.' + tr_name + '[i].checked = "checked"');
				}
				//break;
			}
			//Kiem tra xem trong mo dul co chuc nang nao duoc chon khong
			if (tr_name == 'tr_function'){
				if (eval('document.all.' + tr_name + '[i].modul == chk_obj.modul')){
					if (eval('document.all.' + tr_name + '[i].checked == "checked"')){
						v_modul_checked=true;
					}
				}
			}
			i++;
		}
	}else{
		if (eval('document.all.' + tr_name + '.value == chk_obj.value')){
			if (eval('document.all.' + tr_name + '.checked == "checked"')){
				eval('document.all.' + tr_name + '.checked = ""');
			}else{
				eval('document.all.' + tr_name + '.checked = "checked"');
			}
		}
		if (tr_name == 'tr_function'){
			if (eval('document.all.' + tr_name + '.modul == chk_obj.modul')){
				if (eval('document.all.' + tr_name + '.checked == "checked"')){
					v_modul_checked=true;
				}
			}
		}
	}
	//thay doi gia tri cua checked trong tr_modul va chk_modul_id theo v_modul_checked=True or False
	if (tr_name == 'tr_function'){
		v_count = eval('document.all.tr_modul.length');
		if (v_count){
			i=0;
			while (i<v_count){
				if (eval('document.all.tr_modul[i].value == chk_obj.modul')){
					if (v_modul_checked == true){
						eval('document.all.tr_modul[i].checked = "checked"');
						eval('document.all.chk_modul_id[i].checked = "checked"');
					}else{
						eval('document.all.tr_modul[i].checked = ""');
						eval('document.all.chk_modul_id[i].checked = ""');
					}
					break;
				}
				i++;
			}
		}else{
			if (eval('document.all.tr_modul.value == chk_obj.modul')){
				if (v_modul_checked == true){
					eval('document.all.tr_modul.checked = "checked"');
				}else{
					eval('document.all.tr_modul.checked = ""');
				}
			}
		}
	}
	//Kiem tra che do hien thi de refresh man hinh
	if (eval('document.all.' + rad_id + '(1).checked')){
		show_row_selected(rad_id,tr_name);
	}
}
function save_hidden_list_item_id(p_hdn_list,p_chk_obj){
	if (checkbox_value_to_list(p_chk_obj,",")!=""){
		p_hdn_list.value = checkbox_value_to_list(p_chk_obj,",");
	}
}
/////End/////Cac ham phuc vui cho checkbox multiple
function onchange_submit(obj_sel_type,obj_hdn_type,p_fuseaction){
	obj_hdn_type.value = obj_sel_type.value;
	btn_save_onclick(p_fuseaction);
}
function show_window_to_print(p_goto_url,p_checkbox_obj,p_type,p_fuseaction) {
	var list = checkbox_value_to_list(p_checkbox_obj,",");
	if (list) {   //Kiem tra xem co cau hoi nao duoc chon hay khong?
		if(list_count_element(list,",")==1)	{ //Kiem tra xem co phai chon 1 cau hoi hay khong?
			v_url = p_goto_url + "?hdn_record_id=" + list+ "&hdn_recordtype_filter=" + p_type +"&fuseaction="+p_fuseaction +"&modal_dialog_mode=1";
			v_url = v_url+ "&" + randomizeNumber();
			//sRtn = showModalDialog(v_url,"","dialogWidth=420pt;dialogHeight=200pt;dialogTop=80pt;status=no;scroll=no;");
			goto_url(v_url,3);
		}else{
			alert("Chỉ được chọn một Hồ Sơ để in");
		}
	} else {
		alert("Chưa có hồ sơ nào được chọn");
		return;		
	}
}
function list_count_element(the_list,the_separator)
{	
	if (the_list=="") return -1;
	arr_value = the_list.split(the_separator);
	if (arr_value.length > 0){
			return arr_value.length;
	}
	return -1;
}	
//Chuyen toi url
function goto_url(p_url,p_open_new_win)
{
	if (p_open_new_win==3)
		open_me(p_url, 1, 1, 1, 1, 1, 0, 0, 0, 0, 450, 650, 0, 0);
	else{
		//document.parentWindow.location = p_url;	
		//alert (document.location);
		if (p_open_new_win==2)
			window.top.location = p_url;
		else{
			window.location = p_url;
		}
	}
}
//==============================================================================================================
// open new window with some value
function open_me(url, vStatus, vResizeable, vScrollbars, vToolbar,vMenubar, vLocation, vFullscreen, vTitlebar, vCentered, vHeight, vWidth, vTop, vLeft)	 
{
	winDef = '';
	winDef = winDef.concat('status=').concat((vStatus) ? 'yes' : 'no').concat(',');
	winDef = winDef.concat('resizable=').concat((vResizeable) ? 'yes' : 'no').concat(',');
	winDef = winDef.concat('scrollbars=').concat((vScrollbars) ? 'yes' : 'no').concat(',');
	winDef = winDef.concat('toolbar=').concat((vToolbar) ? 'yes' : 'no').concat(',');
	winDef = winDef.concat('menubar=').concat((vMenubar) ? 'yes' : 'no').concat(',');
	winDef = winDef.concat('location=').concat((vLocation) ? 'yes' : 'no').concat(',');
	winDef = winDef.concat('fullscreen=').concat((vFullscreen) ? 'yes' : 'no').concat(',');
	winDef = winDef.concat('titlebar=').concat((vTitlebar) ? 'yes' : 'no').concat(',');
	winDef = winDef.concat('height=').concat(vHeight).concat(',');
	winDef = winDef.concat('width=').concat(vWidth).concat(',');

	if (vCentered)	{
		winDef = winDef.concat('top=').concat((screen.height - vHeight)/2).concat(',');
		winDef = winDef.concat('left=').concat((screen.width - vWidth)/2);
	}
	else	{
		winDef = winDef.concat('top=').concat(vTop).concat(',');
		winDef = winDef.concat('left=').concat(vLeft);
	}
	open(url, '_blank', winDef);
}
//Ham de cap nhat cong viec (handle)
function btn_save_record_work_onclick(p_worktype_checkbox_obj,p_hdn_worktype_checkbox_obj, p_fuseaction){
	p_hdn_worktype_checkbox_obj.value = checkbox_value_to_list(p_worktype_checkbox_obj,",");
	btn_save_onclick(p_fuseaction);
}
function btn_add_record_work_onclick(p_obj, p_fuseaction, p_goto_url){
	if (_MODAL_DIALOG_MODE==1){
		v_url = _DSP_MODAL_DIALOG_URL_PATH;
		v_url = v_url + "?goto_url=" + p_goto_url + "&hdn_item_id=0" + "&fuseaction=" + p_fuseaction + "&modal_dialog_mode=1" + "&" + randomizeNumber();
		sRtn = showModalDialog(v_url,"","dialogWidth=470pt;dialogHeight=210pt;status=no;scroll=no;");
		//alert(sRtn);
		document.forms(0).fuseaction.value = "";
		document.forms(0).submit();
	}else{
		document.forms(0).fuseaction.value = p_fuseaction;
		document.forms(0).submit();
	}	
}
function show_modal_dialog_update_onclick(p_goto_url,p_fuseaction,p_fuseaction_ret, p_checkbox_item, p_hdn_item,hdn_type,hdn_date){
	var v_id_list = checkbox_value_to_list(p_checkbox_item,",");
	if (v_id_list) {  
		v_url = _DSP_MODAL_DIALOG_URL_PATH;
		v_url = v_url + "?goto_url=" + escape(p_goto_url +  "?hdn_record_id_list=" + v_id_list + "&hdn_recordtype_filter=" + hdn_type.value+ "&hdn_received_date=" + hdn_date.value);
		v_url = v_url + "&fuseaction=" + p_fuseaction + "&modal_dialog_mode=1" 
		v_url = v_url+ "&" + randomizeNumber();
		//alert(v_url);
		sRtn = showModalDialog(v_url,"","dialogWidth=420pt;dialogHeight=180pt;dialogTop=100pt;status=no;scroll=no;");
		if (!sRtn){ 
			return;
		}else{
			arr_value = sRtn.split(_LIST_DELIMITOR);
			p_hdn_item.value = arr_value[0];
			hdn_date.value = arr_value[1];
			//p_hdn_item.value = v_id_list;
			document.forms(0).fuseaction.value = p_fuseaction_ret;
			//alert(p_fuseaction_ret);
			document.forms(0).submit();
		}
	}else{
		alert("Chưa có hồ sơ được chọn");
		return;		
	}
	
}
function btn_update_handover_onclick(p_hdn_obj,p_txt_obj){
	if (verify(document.forms(0))){
		window.returnValue = p_hdn_obj.value + _LIST_DELIMITOR + p_txt_obj.value;
		window.close();
	}
}
//Lay ngay tiep theo cua ngay trong elTerget.value
function Next_Date(p_date) {
	if(isdate(p_date)){
		var theDate,strSeparator,arr,day,month,year;
		strSeparator = "";
		theDate = p_date;
		if (theDate.indexOf("/")!=-1) strSeparator = "/";
		if (theDate.indexOf("-")!=-1) strSeparator = "-";
		if (theDate.indexOf(".")!=-1) strSeparator = ".";
		if (strSeparator != "") {
		arr=theDate.split(strSeparator);
		day=new Number(arr[0])+1;
		month=new Number(arr[1]);
		year=new Number(arr[2]);
		if(day > 28) {
			if (((month == 1 || month == 3 || month == 5 || month == 7 || month == 8 || month == 10 || month == 12) && (day > 31))
			|| ((month == 4 || month == 6 || month == 9 || month == 11) && (day > 30))||(month == 2 && year % 4 !=0)||(month == 2 && year % 4 ==0 && day > 29)) 
			{
				day = 1;
				month = month+1;
			}
			if (month > 12 ){
				year = year +1;
				month = 1;
			}
			
		}	
		return day + strSeparator + month + strSeparator + year;
	}
   }		
	
}
function list_have_date(the_list,the_element, the_separator)
{	
	if (the_list=="") return 0;
	arr_value = the_list.split(the_separator);
	for(i=0;i<arr_value.length;i++){
		if (date_compare(arr_value[i],the_element)==0){
			return 1;
		}
	}
	return 0;
}
function get_appoint_date(obj_date_input,count,obj_date_output,p_year){
	var v_list_day_off_of_year = _LIST_DAY_OFF_OF_YEAR.split(",");
	var v_list_day = _LIST_WORK_DAY_OF_WEEK;
	var v_list_luner_date="";
	var v_date,v_temp_date;
	var v_input_date = obj_date_input.value;
	var v_next_date = "";
	if (!isdate(obj_date_input.value)){
		return;
	}
	for (var i=0;i<v_list_day_off_of_year.length;i++){
		v_date = v_list_day_off_of_year[i].split("/");
		if (v_date[0]=="-"){
			v_list_luner_date = list_append(v_list_luner_date,v_date[1]+"/" + v_date[2] + "/" + p_year,",");
		}else{
			v_temp_date = Solar2Lunar(v_date[1]+ "/" + v_date[2] + "/" + p_year);
			v_list_luner_date = list_append(v_list_luner_date,v_temp_date,",");
		}
	}
	var i=0;
	v_next_date = v_input_date;
	while ((i<count)){ //Tinh du tong so ngay tru ngay duoc nghi ra
		if ((list_have_date(v_list_luner_date,Solar2Lunar(v_next_date),",")!=1)&&(Solar2DayofWeek(v_next_date)!=7)&&(Solar2DayofWeek(v_next_date)!=8)){
			i++;
			v_next_date = Next_Date(v_next_date);	
		}else{
			v_next_date = Next_Date(v_next_date);	
		}
	}//Neu den han duoc lay roi ma gap ngay khong tiep thi phai cho 
	while ((list_have_element(v_list_day,Solar2DayofWeek(v_next_date),",")<0)){
		v_next_date = Next_Date(v_next_date);	
	}
	obj_date_output.value = v_next_date;
}
function btn_result_handle_onclick(p_checkbox_obj, p_hidden_obj, p_fuseaction){
	if (!checkbox_value_to_list(p_checkbox_obj,",")){
		alert("Chưa có đối tượng nào được chọn");
		return;
	}else{
		document.forms(0).fuseaction.value = p_fuseaction;
		p_hidden_obj.value = checkbox_value_to_list(p_checkbox_obj,",");
		document.forms(0).submit(); 
	}	
}
/*

*/
function btn_move_to_leader_onclick(p_checkbox_obj, p_hidden_obj, p_fuseaction){
	if (!checkbox_value_to_list(p_checkbox_obj,",")){
		alert("Chưa có đối tượng nào được chọn");
		return;
	}else{
		document.forms(0).fuseaction.value = p_fuseaction;
		p_hidden_obj.value = checkbox_value_to_list(p_checkbox_obj,",");
		alert("Tất cả hồ sơ có là " + p_hidden_obj.value + "sẽ được chuyển lên cho lãnh đạo");
		document.forms(0).submit(); 
	}	
}
function sending_email(p_fuseaction){
		document.forms(0).fuseaction.value = p_fuseaction;
		document.forms(0).submit();
}
//Ham nay dung de kiem tra xem co ton tai the xxx khong???
function test_tag(name_tag){
	var v_test_tag = false;
	var f = document.forms(0);
	for (i=0;i<f.length;i++){
		var e=f.elements[i];
		var v_element = e.xml_tag_in_db;
		if(v_element != "undefined"){
			if(v_element == name_tag){
				v_test_tag = true;
				break;
			}
		}
	}
	return v_test_tag;
}
//Ham nay dung de kiem tra xem la phan tu "name_element" co ton tai khong?
//Vi du: Kiem tra phan tu co ten la txt_code co ton tai tren form khong?
function test_form_element(name_element){
	var v_test_form_element = false;
	var f = document.forms(0);
	for (i=0;i<f.length;i++){
		var e=f.elements[i];
		var v_element = e.name;
		if(v_element != "undefined"){
			if(v_element == name_element){
				v_test_form_element = true;
				break;
			}
		}
	}
	return v_test_form_element;
}
/*
	chuc nang: Ham dung de lay gia tri tu mot the tag_name
	vi du: Muon lay gia tri tu the doc_another
*/
function get_value_from_tag(tag_name){
	var f = document.forms(0);
	var v_value = "";
	for (i=0;i<f.length;i++){
		var e=f.elements[i];
		var v_element = e.xml_tag_in_db;
		if(v_element != "undefined"){			
			if(v_element == tag_name){
				v_value = e.value;
				break;
			}
		}
	}
	return v_value;
}
/*
	Chuc nang: Ham dung de cheo vao mot phan tu cua multilcheckbox
*/
/*
function f_checked_multil(tag_name){
	var v_len_checkbox = document.all.chk_item_id.length;
	for(var v_index = 0;v_index<v_len_checkbox;v_index++){
		var v_value = document.all.chk_item_id[v_index].value;
		var v_value_from_tab = get_value_from_tag("doc_another");	
		if((v_value == tag_name) && (v_value_from_tab!="") && (!isblank(v_value_from_tab)) && (v_value_from_tab!=null)){
		//alert(v_value_from_tab);
			document.all.chk_item_id[v_index].checked = true;
		}
	}
			
}
*/
/*
	Chuc nang: Ham nay dung de an/hien khi NSD cho vao muc tai lieu khac tren list tai lieu kem theo
	Vi du: Khi NSD chon vao "Tai lieu khac" tren danh sach tai lieu kem theo
*/
function show_hide_content_doc_another(){
	if(test_tag('doc_another')){
		//f_checked_multil('TAI_LIEU_KHAC');
		var v_count = 0;
		var v_len_checkbox = document.all.chk_item_id.length;
		for(var v_index = 0;v_index<v_len_checkbox;v_index++){
			var v_value = document.all.chk_item_id[v_index].value;
			if((v_value == 'TAI_LIEU_KHAC') && (document.all.chk_item_id[v_index].checked)){
				v_count++;
				document.forms(0).hdn_doc_another.value = 1;
				show_row('doc_another');
				break;
			}
		}
		//alert(v_count);
		if(v_count <= 0){
			document.forms(0).hdn_doc_another.value = 0;
			hide_row('doc_another');
		}
	}
}
//Ham thay thuc thi khi NSD muon thay doi so dong quy dinh tren mot trang
function page_record_number_onchange(sel_obj,p_fuseaction){
	document.forms(0).hdn_page.value = 1;
	document.forms(0).hdn_record_number_page.value = sel_obj.value;
	document.forms(0).fuseaction.value = p_fuseaction;
	document.forms(0).submit();
}